extends Area3D

@export var type_ammo: AmmoHandler.TYPE_AMMO
@export var count_ammo := 10:
	get:
		print(AmmoHandler.TYPE_AMMO.find_key(type_ammo))
		return count_ammo




func _on_body_entered(body: Node3D) -> void:
	if body.is_in_group("player"):
		body.ammo_manager.add_ammo(type_ammo,count_ammo)
		print("加弹")
		queue_free()
